package com.ssy.lingxi.member.merchant.api.model.vo.inner.request;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 批量查询接口参数
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-24
 */
public class MemberFeignBatchVO implements Serializable {
    private static final long serialVersionUID = 7404559019813309410L;

    /**
     * 会员Id
     */
    @NotNull(message = "会员Id要大于0")
    @Positive(message = "会员Id要大于0")
    private Long memberId;

    /**
     * 会员角色Id
     */
    @NotNull(message = "会员角色Id要大于0")
    @Positive(message = "会员角色Id要大于0")
    private Long roleId;

    /**
     * 上级会员列表
     */
    @NotEmpty(message = "上级会员列表不能为空")
    @Valid
    private List<MemberFeignUpperMemberVO> upperMembers;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public List<MemberFeignUpperMemberVO> getUpperMembers() {
        return upperMembers;
    }

    public void setUpperMembers(List<MemberFeignUpperMemberVO> upperMembers) {
        this.upperMembers = upperMembers;
    }
}
